#  seek
#  换行算2个字节

# f = open('a.txt','r+',encoding='utf8')
# #                      errors = 'ignore'
# f.seek(1)
# f.write('哼')
# f.close()
# f = open('b.txt','r+',encoding='utf8')
# print(f.read())

print('陈欢'.encode('utf8'))
print(b'\xe9\x99\x88\xe6\xac\xa2'.decode('utf8'))

f = open('a.txt','r+',encoding='utf8')
#                      errors = 'ignore'
f.seek(8)
f.write('enen')
f.close()
